package com.example.design.factory.phone.abst.abstractfactory;

import com.example.design.factory.phone.abst.abstractproduct.MIPC;
import com.example.design.factory.phone.abst.abstractproduct.MiPhone;
import com.example.design.factory.phone.abst.abstractproduct.PC;
import com.example.design.factory.phone.abst.abstractproduct.Phone;

/**
 * @Description XiaoMiFactory类：生产小米手机的工厂（ConcreteFactory1）
 * @ClassName MiFactory
 * @Author Administrator
 * @Date 2020/5/13 19:35
 * @Version 1.0.0
 */
public class MiFactory implements AbstractFactory {
    @Override
    public Phone makePhone() {
        return new MiPhone();
    }

    @Override
    public PC makePC() {
        return new MIPC();
    }
}
